#ifndef OBJECTIVECHOOSEFORM_H
#define OBJECTIVECHOOSEFORM_H

#include <QWidget>

namespace Ui {
class ObjectiveChooseForm;
}

class ObjectiveChooseForm : public QWidget
{
    Q_OBJECT

public:
    explicit ObjectiveChooseForm(QWidget *parent = nullptr);
    ~ObjectiveChooseForm();

    void SetCalibrationCorrection(bool _state=false);
    
    // 获取当前选择的文本
    QString getCurrentText() const;

 signals:
    // 信号：当选择模式变化时发出
    void chooseModeChanged(const QString &text);

public slots:
    // 槽：设置选择模式
    void setChooseMode(const QString &text);
    
    // 槽：当 comboBox_chooseMode 的当前索引改变时调用
    void on_comboBox_chooseMode_currentIndexChanged(const QString &text);

private:
    Ui::ObjectiveChooseForm *ui;

protected:
    void paintEvent(QPaintEvent *event) override;
};

#endif // OBJECTIVECHOOSEFORM_H
